#!/usr/bin/env python
# coding=utf-8

TIMEOUT = 3  # 超时时间
SCROLL_CMD = ' -c 3'  # 回滚的命令
COMMAND = 3  # 回滚时插件定义的命令
LEVEL = ['A', 'B', 'C']  # 插件执行的level
EXPORT_TYPE = ['XML', 'JSON']  # 导出类型
SOURCE = ['selfdevelop', 'thirddevelop']  # 插件是自研还是第三方
PLUGIN_TYPE = ['SCRIPT', 'EXE']  # 插件类型
COMMON_NAME = 'common_utils'  # 公共函数的名称
COMMON_PATH = '../plugins/secchecksuite'  # 公共函数的路径
LOGPATH = '/var/log/secchecksuite/'  # 默认日志路径
RESULTFILE = 'result'  # 临时文件
LOGNAME = 'seccheck.log'  # 日志文件
REPORTFILE = 'report'  # 报告文件
PYTHON2 = 'Python 2.'  # python2 版本
PYTHON3 = 'Python 3.'  # python3 版本
CODE_COUNT_DES = ['code', 'count', 'des']  # 插件执行完毕后的返回结果
VERSION = '1.0.2'  # 版本信息
SQLITE_DB_NAME = 'secchecksuite.db'  # sqlite3 数据库名称
THIRD_PLUGIN_DATA_ID = []
FORMAT_INFO = "Input Format:entryPoints, module\n" \
              "entryPoints: the keys in entryPoints, chose [all, docker, host, k8s, third].\n" \
              "module: the module of entryPoints, it match the id value in json file\n" \
              "module host: chose [all, access_control, anti_malware, authentication, intrusion_guard, security_audit, system];\n" \
              "module docker: chose [all, docker_daemon, docker_dockered, docker_file, docker_host, docker_operate, docker_swarm];\n" \
              "module k8s: chose [all, apiserver, controller, etcd, kubelet, master, node, scheduler]\n" \
              "module third: [docker_bench_security]" \
              "If input nothing, we will config all plugin according to your configure value.\n" \
              "Input Format:entryPoints, module\n"
MODULE_INFO = "Enter plugin module you want to config:\n" + FORMAT_INFO

EXCUTE_INFO = "Enter plugin module you want to execute:\n" + FORMAT_INFO
